package com.dykj.fireFighting.server.fire.contractMessage.mapper;


import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.dykj.fireFighting.api.fire.contractMessage.entity.ContractMessage;
import com.dykj.fireFighting.api.fire.contractMessage.vo.ContractMessagesVo;
import com.dykj.fireFighting.common.core.mapper.SuperMapper;
import org.apache.ibatis.annotations.Param;

import java.util.HashMap;
import java.util.List;

import java.util.Map;

/**
 * @Description 维保合同表
 * @Author JacksonTu
 * @Date  2021-07-27 15:01:44
 */
public interface ContractMessageMapper extends SuperMapper<ContractMessage> {

    IPage<ContractMessagesVo> queryList(Page page, @Param("params") HashMap<String, Object> params);

    List<ContractMessagesVo> getSomeContract(@Param("params") HashMap<String, Object> params);
    List<ContractMessagesVo> queryBeExprieList(@Param("unitId") String unitId,@Param("type") Integer type);

    List<ContractMessagesVo> getUnitList(@Param("params") HashMap<String, Object> params);
    int querySameContractNum(@Param("contractNumber") String contractNumber,@Param("id") String id);
    ContractMessagesVo getByUnitMaintenance(@Param("sociolgyId") String sociolgyId, @Param("maintenanceId") String maintenanceId);
}
